package net.lanelife.casino.caipiao.repository.api;

import java.util.List;

import javax.persistence.QueryHint;

import net.lanelife.casino.caipiao.entity.Preference;
import net.lanelife.casino.common.repository.support.GenericRepository;

import org.springframework.data.jpa.repository.QueryHints;

public interface IPreferenceRepository extends GenericRepository<Preference, Integer> {

	@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value = "true") })
	public List<Preference> findAll();
	
	@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value = "true") })
	public Preference findByCode(String code);

}
